Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(action): unexpected behaviour when watching non-existing Actions #298

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

apricote
Copy link
Member

@apricote apricote commented Aug 8, 2023

When passed an action with an unknown ID, the ActionClient.WatchProgress() and ActionClient.WatchOverallProgress() methods experience unexpected behaviour:

  • WatchProgress() would panic with a nil pointer dereference when accessing a.Status
  • WatchOverallProgress() would go into an infinite loop, never finishing or closing the channels.

When passed an action with an unknown ID, the
`ActionClient.WatchProgress()` and `ActionClient.WatchOverallProgress()`
methods experience unexpected behaviour:

- `WatchProgress()` would panic with a nil pointer dereference when
  accessing `a.Status`
- `WatchOverallProgress()` would go into an infinite loop, never
  finishing or closing the channels.
@apricote apricote added the Bug label Aug 8, 2023
@apricote apricote self-assigned this Aug 8, 2023
@apricote apricote requested a review from a team as a code owner August 8, 2023 11:01
@apricote apricote added the backport release-1.x Open PR against release-1.x with these changes after the PR is merged. label Aug 8, 2023
@apricote apricote merged commit 0727d42 into main Aug 8, 2023
5 checks passed
@apricote apricote deleted the fix-action-invalid-id branch August 8, 2023 12:04
github-actions bot pushed a commit that referenced this pull request Aug 8, 2023
…298)

When passed an action with an unknown ID, the
`ActionClient.WatchProgress()` and `ActionClient.WatchOverallProgress()`
methods experience unexpected behaviour:

- `WatchProgress()` would panic with a nil pointer dereference when
  accessing `a.Status`
- `WatchOverallProgress()` would go into an infinite loop, never
  finishing or closing the channels.

(cherry picked from commit 0727d42)
apricote added a commit that referenced this pull request Aug 8, 2023
…298) (#300)

When passed an action with an unknown ID, the
`ActionClient.WatchProgress()` and `ActionClient.WatchOverallProgress()`
methods experience unexpected behaviour:

- `WatchProgress()` would panic with a nil pointer dereference when
  accessing `a.Status`
- `WatchOverallProgress()` would go into an infinite loop, never
  finishing or closing the channels.

(cherry picked from commit 0727d42)

Co-authored-by: Julian Tölle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-1.x Open PR against release-1.x with these changes after the PR is merged. Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants